FROM apache/skywalking-java-agent:8.5.0-jdk8
ADD target/account-service-0.0.1-SNAPSHOT.jar account-service.jar
ENV JAVA_OPTS="-server -Xms128m -Xmx512m -Xss512k -Dskywalking.agent.service_name=account-service -Dskywalking.collector.backend_service=skywalking:11800 -javaagent:/skywalking/agent/skywalking-agent.jar"
RUN apk add tzdata
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' > /etc/timezone
EXPOSE 8866:8866
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -jar account-service.jar" ]